﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" CodeBehind="TODO.aspx.cs" Inherits="Pomodoro.Web.TODO" AutoEventWireup="true"%>
<asp:Content ID="Template" ContentPlaceHolderID="Head" runat="server" >
    <script type="text/javascript" language="javascript" src="JS/TODO.js"></script>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
        <div>
            <asp:Label ID="Alertas" runat="server" />
        </div>
        <div>
            <label id="Timer" />
        </div>
        <div>
            <asp:TextBox ID="CampoNovaTarefa" runat="server" />
            <asp:Button ID="BtnNovaTarefa"  
                        Text="Nova tarefa"
                        OnClick="BtnNovaTarefa_Click" 
                        runat="server"/>
        </div>
        <div>
            <asp:GridView   ID="ListaTarefas" 
                            AutoGenerateColumns="False" 
                            DataKeyNames="Started"
                            runat="server">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="#" />
                    <asp:BoundField DataField="Description" HeaderText="Descrição" />
                    <asp:TemplateField HeaderText="Iniciar">
                        <ItemTemplate>
                            <a alt="iniciar tarefa" id='<%# Eval("ID") %>' href='#'>iniciar tarefa</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Status"  HeaderText="Status" />
                    <asp:BoundField DataField="Started" HeaderText="Iniciado?" Visible="false"/>
                </Columns>
            </asp:GridView>
            <asp:HiddenField ID="TarefaCorrente" runat="server" />
        </div>
</asp:Content>
